package com.chenc.javathreads.common;

/**
 * @enumName
 * @Describtion:
 * @Author:Chenc
 * @Date:2023/12/30 17:43
 * @Version 1.0
 */
public enum NormalInteceptorEnum {

    GOLBAL_NO("golbalNo", "全局流水号"),
    RESPONSE_BODY("responseBody", "返回数据"),
    REQUEST_SIGN("sign", "签名密文");

    private String value;
    private String desc;

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    NormalInteceptorEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static NormalInteceptorEnum valueOfExt(String value) {
        NormalInteceptorEnum result = null;
        NormalInteceptorEnum[] var2 = values();
        int var3 = var2.length;

        for (int var4 = 0; var4 < var3; ++var4) {
            NormalInteceptorEnum item = var2[var4];
            if (item.getValue().equals(value)) {
                result = item;
                break;
            }
        }

        if (result == null) {
            throw new RuntimeException("value在" + NormalInteceptorEnum.class.getSimpleName() + "中不存在");
        } else {
            return result;
        }
    }


}
